<template>
  <div>
    <el-card>
      <el-row :gutter="20">
      </el-row>

      <el-table :data="dataList" border stripe>
        <el-table-column label="日期" prop="ymd"></el-table-column>
        <el-table-column label="订单数" prop="cnt"></el-table-column>
        <el-table-column label="订单金额" prop="order_amount"></el-table-column>
        <el-table-column label="券抵扣金额" prop="discount"></el-table-column>
        <el-table-column label="实付金额" prop="cash_pay"></el-table-column>
      </el-table>

    </el-card>


  </div>
</template>

<script>
import Api from "@/api/Api.js";
export default {
  data() {
    return {
      queryInfo: {
      },
      dataList: [],
      total: 0,
    };
  },
  created() {
    this.orderCount();
  },
  methods: {
    orderCount() {
      Api.orderCount(this.queryInfo).then((res) => {
        if (res.success) {
          this.dataList = res.data;
        } else {
          return this.$message.error("获取失败");
        }
      });
    }
  }
};
</script>

<style lang="less" scoped>
.logo_pic {
  max-width: 100px;
}
</style>
